package cn.lxh.ymcc.feign;

import cn.lxh.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 亮点
 *  --pathvariable 可以 传递两个参数
 */
@FeignClient(value = "service-course", fallbackFactory = CourseUserLearnFeignClientFallBackFactory.class)
public interface CourseUserLearnFeignClient {
    @RequestMapping(value = "/courseUserLearn/{courseId}/{loginId}",method = RequestMethod.GET)
    JSONResult checkUrlPermission(@PathVariable("courseId")Long courseId, @PathVariable("loginId")Long loginId);

}